//
//  BaseViewController.swift
//  Copy_Aikaopu
//
//  Created by taojianz on 2017/6/27.
//  Copyright © 2017年 taojianz. All rights reserved.
//

import UIKit

class BaseViewController: UIViewController {
    
    override var supportedInterfaceOrientations: UIInterfaceOrientationMask{
        return .portrait
    }
    
    
//    // 导航栏控制器
//    var MyNavigationController: UINavigationController!
//    
//    // 导航栏
//    var navigationBar : UINavigationBar!
//    
//    // 导航栏Item
//    var navigationItems: [UIBarButtonItem]!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = .white
        
        setupUI()
    }

    

}
// MARK: setupUI
extension BaseViewController{

    func setupUI(){
        setupNav()
        
        
    }
    
    // 设置导航栏
    func setupNav(){
        
//        MyNavigationController = UINavigationController()
//        
//        navigationBar = MyNavigationController.navigationBar
//        
//        navigationBar = UINavigationBar(frame: CGRect(x: 0, y: 0, width: UIScreen.width, height:44))
//        
//        view.addSubview(navigationBar)
//        
        
    }
}
